package com.ruoyi.system.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.Warehouse;

/**
 * 仓库/库区Service接口
 * 
 * @author ruoyi
 * @date 2024-12-12
 */
public interface IWarehouseService 
{
    /**
     * 查询仓库/库区
     * 
     * @param id 仓库/库区主键
     * @return 仓库/库区
     */
    public Warehouse selectWarehouseById(Long id);

    /**
     * 查询仓库/库区列表
     * 
     * @param warehouse 仓库/库区
     * @return 仓库/库区集合
     */
    public List<Warehouse> selectWarehouseList(Warehouse warehouse);

    /**
     * 新增仓库/库区
     * 
     * @param warehouse 仓库/库区
     * @return 结果
     */
    public int insertWarehouse(Warehouse warehouse);

    /**
     * 修改仓库/库区
     * 
     * @param warehouse 仓库/库区
     * @return 结果
     */
    public int updateWarehouse(Warehouse warehouse);

    /**
     * 批量删除仓库/库区
     *
     * @param ids 需要删除的仓库/库区主键集合
     * @return 结果
     */
    public int deleteWarehouseByIds(Long[] ids);

    /**
     * 删除仓库/库区信息
     * 
     * @param id 仓库/库区主键
     * @return 结果
     */
    public int deleteWarehouseById(Long id);
    public List<Map<String,Object>> CangKuZb();

    int Cang();

    int Ku();
}
